package com.zxshhy;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 库存远程调用接口
 */
@FeignClient(name="zxshhy-balance-service",path="/tcc/balance")
@Repository
public interface BalanceTCCServiceFeign {

    @PostMapping("/debit")
    Boolean debit(@RequestParam("userId") String userId,@RequestParam("money") int money);
}
